<!-- target: sponsor -->
<div class="sponsor-detail-page detail-page flex-cont" ui="type:m-panel;">
    <div class="detail-info staff-info">
        <!-- if: ${detail.headPortrait} -->
        <img src="={${detial.headPortrait}" alt="">
        <!-- elif: ${detail} -->
        <!-- var: name = String.prototype.slice.call(${detail.creatorName}, -2) -->
        <div class="head">${name}</div>
        <!-- /if -->
        <div class="text">
            <div class="name">${detail.creatorName}</div>
            <div class="status">${detail.auditStateDesc}</div>
        </div>
        <img class="audit-state" src="images/approval/auditState_${detail.auditState}.png" />
    </div>
    <ul class="detail-info info-list">
        <li class="info-item">
            <div class="info-label">类型：</div>
            <div class="info-text">[${detail.type|parseBaseInfo('sponsorType')}]</div>
        </li>
        <li class="info-item">
            <div class="info-label">厂牌名称：</div>
            <div class="info-text">[${detail.forShort}]</div>
        </li>
        <li class="info-item">
            <div class="info-label">公司名称：</div>
            <div class="info-text">[${detail.sponsorName}]</div>
        </li>
        <li class="info-item">
            <div class="info-label">LOGO：</div>
            <div class="info-text"><img class="logo" src="${detail.logoUrl}" /></div>
        </li>
        <li class="info-item">
            <div class="info-label">省市：</div>
            <div class="info-text">[${detail.region|parseRegion}]</div>
        </li>
        <li class="info-item">
            <div class="info-label">街道：</div>
            <div class="info-text">[${detail.street}]</div>
        </li>
        <li class="info-item">
            <div class="info-label">联系电话：</div>
            <div class="info-text">[${detail.contactPhone}]</div>
        </li>
        <li class="info-item">
            <div class="info-label">电子邮箱：</div>
            <div class="info-text">[${detail.email}]</div>
        </li>
    </ul>

    <!-- use:detail.histories(histories=${detail.auditList}) -->

</div>
<!-- use:detail.sponsorComment(detail=${detail},module=1,initiate=${initiate}) -->

<!-- target:sponsorComment -->
<!-- var:auditState = ${detail.auditState} -->
<form class="operate-btn-box" name="sponsorCommentForm">
    <input class="ui-hide" name="id" value="${detail.id}" />
    <input class="ui-hide" name="auditStatus" value="" />
    <label ui="type:NS.SponsorCommentSave;name:remark;">
        <input class="text" type="text" placeholder="请输入" name="remark" />
        <input class="submit-btn" type="button" disabled value="提交"/>
        <div class="btn-items">
            <!-- if: ${auditState} === 1 -->
                <!-- if: ${mao.staffInfo.storeManager} || ${mao.staffInfo.staffId} === ${detail.creatorId} -->
                <!-- <input class="btn-item" ui="ext-permission:={mao.joinPermission(${module}, 'modify')};module:${module};action:0" value="撤销"> -->
                <!-- /if -->
                <strong type="text" class="btn-item" ui="ext-permission:={mao.joinPermission(${module}, 'audit')};module:${module};action:3"><span class="icon more"></span><span>通过</span></strong>
                <strong type="text" class="btn-item" ui="ext-permission:={mao.joinPermission(${module}, 'audit')};module:${module};action:2"><span class="icon more"></span><span>驳回</span></strong>
            <!-- elif: ${auditState} === 0 || ${auditState} === 2 -->
                <!-- if: ${mao.staffInfo.storeManager} || ${mao.staffInfo.staffId} === ${detail.creatorId} -->
                <a class="btn-item" href="#/sponsor/edit~id=${detail.id}" ui="ext-permission:={mao.joinPermission(${module}, 'modify')};module:${module};action:5"><span class="icon more"></span><span>编辑</span></a>
                <strong type="text" class="btn-item" ui="ext-permission:={mao.joinPermission(${module}, 'modify')};module:${module};action:6"><span class="icon more"></span><span>删除</span></strong>
                <!-- /if -->
            <!-- elif: ${auditState} === 3 -->
            <strong type="text" class="btn-item" ui="ext-permission:={mao.joinPermission(${module}, 'auditFinal')};module:${module};action:4"><span class="icon more"></span><span>终止</span></strong>
            <!-- /if -->
            
            <strong type="text" class="btn-item" ui="module:${module};action:7"><span class="icon"></span><span>评论</span></strong>
        </div>
    </label>
</form>

